package com.neuedu.studentmanage.entity;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;

public class Subject {

	private Integer subId;
	private String subName;

	private Teacher teacher;

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date times;

	public Integer getSubId() {
		return subId;
	}

	public void setSubId(Integer subId) {
		this.subId = subId;
	}

	public String getSubName() {
		return subName;
	}

	public void setSubName(String subName) {
		this.subName = subName;
	}

	public Teacher getTeacher() {
		return teacher;
	}

	public void setTeacher(Teacher teacher) {
		this.teacher = teacher;
	}

	public Date getTimes() {
		return times;
	}

	public void setTimes(Date times) {
		this.times = times;
	}

	public Subject() {
		super();
		// TODO Auto-generated constructor stub
	}

	public Subject(Integer subId, String subName, Teacher teacher, Date times) {
		super();
		this.subId = subId;
		this.subName = subName;
		this.teacher = teacher;
		this.times = times;
	}

	@Override
	public String toString() {
		return "Subject [subId=" + subId + ", subName=" + subName + ", teacher=" + teacher + ", times=" + times + "]";
	}

}
